package com.kede.app.converenum;

import lombok.AllArgsConstructor;
import lombok.Getter;

/***
 ** @Author:Pr.li
 ** @Description: 审核认证状态  状态0 审核中 1 审核通过 2 审核拒绝
 ** @Date: create in 2023/6/11 17:47
 ***/
@Getter
@AllArgsConstructor
public enum CeriConverEnum  implements PersistEnum2DB<Integer,Integer>{

    REVIEW(0,"审核中",3),
    APPROVED(1,"审核通过",2),
    REFUSE(2,"审核拒绝",1);

    private Integer code;

    private String value;

    private Integer index;

    @Override
    public Integer toColType() {
        return index;
    }

    @Override
    public Integer toEnumCode() {
        return code;
    }

    public static class Converter extends AbstractEnumConverter<CeriConverEnum,Integer,Integer>{
        public Converter() {
            super(CeriConverEnum.class);
        }
    }
}
